import requests

r ="http://www.baidu.com"

print(requests.get(r).status_code)
